<?php

require_once '../../../serverResources/includes/db/ConnDBUser.php';
require_once '../../../serverResources/includes/classes/ImpArg.php';
require_once '../../../serverResources/includes/classes/EdImpArg.php';

include_once '../others/refreshSessionTime.php';
if(isset($_POST['source']) && isset($_POST['id'])){

	if($_POST['source']==0){

		//tabela ImpArg

		$imp=new ImpArg('', '', '', '');
		$success=$imp->unsetArg($_POST['id']);
		unset($imp);

		if($success){
			echo 1;
		}else{
			echo 0;
		}

	}else if($_POST['source']==1){

		$ed=new EdImpArg('', '', '');
		$success=$ed->unsetArg($_POST['id']);
		unset($ed);

		if($success){
			echo 1;
		}else{
			echo 0;
		}

	}else{
		echo 0;
	}


}